//const proxy = require("http-proxy-middleware");

const { createProxyMiddleware } = require('http-proxy-middleware');


module.exports = function (app) {
  app.use("/zy", createProxyMiddleware({
    "target": "https://data.miaov.com/",
    "secure": true,
    "changeOrigin": true,
    "pathRewrite": {
      "^/zy": ""
    },
    "cookieDomainRewrite": "https://data.miaov.com/"
  }))
};

/*{
      "proxy": {
    "/miaov": {
      "target": "https://data.miaov.com/",
      "secure": true,
      "changeOrigin": true,
      "pathRewrite": {
        "^/miaov": ""
      }
    }
  },
}*/


